<template>
    <div class="recommend">
        <div class="recommend-item" v-for="item in recommend"  >
            <a :href="item.link" >
                 <img :src="item.image" alt="">
                 <div>{{item.title}}</div>
            </a>
        </div>
    </div>
</template>

<script>


export default {
    name:"RecommendView",
    components:{

    },
    props:{
        recommend:{
            types:Array,
            default(){
                return[]
            }
        }
    }
}
</script>

<style scoped>
    .recommend{
        display: flex;
        width: 100%;
        margin-bottom: 5vw;
    }
    .recommend-item{
        padding-right: 1vw;
        padding-left: 1vw;
    }
    .recommend-item a{
        display: grid;
        text-align: center;
        color: #696978;
        font-weight: bold;
        font-size: 4vw;
    }
    .recommend-item img{
        width: 100%;
        margin-bottom: 1vw;
        margin-top: 2vw;

    }
</style>